# Contributor: Ian Bashford <ianbashford@gmail.com>
# Maintainer: Ian Bashford <ianbashford@gmail.com>
pkgname=doggo
pkgver=0.5.7
pkgrel=1
pkgdesc="A modern command-line DNS client, additionally supporting DoH, DoT and DNSCrypt protocols"
url="https://github.com/mr-karan/doggo"
arch="all"
license="GPL-3.0-only"
makedepends="go"
source="$pkgname-$pkgver.tar.gz::https://github.com/mr-karan/doggo/archive/v$pkgver.tar.gz"
options="net !check" # no test suite

export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"

build() {
	make CLI_BIN="./doggo" VERSION=$pkgver build-cli
}

package() {
	install -Dm755 doggo -t "$pkgdir"/usr/bin/
}

sha512sums="
5c5c4328642ce980fd8abb11930989c36e24e0d2cd2873c736c030547f49bb89f5fe288d7432815a1c08bd75b1f4cb556d155d6079ad845239dc321e137688cc  doggo-0.5.7.tar.gz
"
